package com.fzz.learnitservice.controller;

import com.commonfzz.pojo.po.R;
import com.fzz.learnitservice.service.IUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController {

    private final IUserService iUserService;

    /**
     * 用户设置英语水平
     * @param enLevel
     * @param userId
     * @return
     */
    @GetMapping("/setEnLevel")
    public R setEnLevel(@RequestParam int enLevel, @RequestParam long userId) {
        return iUserService.setEnLevel(enLevel, userId);
    }



}
